<%--
  Created by IntelliJ IDEA.
  User: aaa
  Date: 2017/5/18
  Time: 9:16
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="core" uri="http://java.sun.com/jsp/jstl/core" %>
<core:set var="ctx" value="${pageContext.request.contextPath}"/>
<html>
<head>
    <title>Title</title>
</head>
<body>
<div common-modal-form>

    <table class="table table-bordered">
        <tr>
            <td class="text-right col-xs-3">
                商户号
            </td>
            <td class="col-xs-4">
                <input type="text" ng-model="vm.item.merchantCode" class="{{vm.constant.inputClass}}"
                       placeholder="根据简称获取商户代码" required
                       typeahead-min-length="0"
                       uib-typeahead="item.key as item.value for item in vm.cached.MERCHANT_CODE | filter:$viewValue | limitTo:10">
            </td>
        </tr>
        <tr>
            <td class="text-right">
                订单号
            </td>
            <td>
                <input ng-model="vm.item.orderNo" class="{{vm.constant.inputClass}}" required>
            </td>
        </tr>
        <tr>
            <td class="text-right">
                订单日期
            </td>
            <td>
                <input ng-model="vm.item.orderDate" class="{{vm.constant.inputClass}}"
                       uib-datepicker-popup="yyyy-MM-dd" required>
            </td>
        </tr>
        <tr>
            <td class="text-right">
                接入渠道
            </td>
            <td>
                <select ng-model="vm.item.channel" class="{{vm.constant.inputClass}}"
                        ng-options="key as value for (key,value) in vm.cached.CONN_CHANNEL" required>
                </select>
            </td>
        </tr>
        <tr>
            <td class="text-right">
                订单总金额(元)
            </td>
            <td>
                <input ng-model="vm.item.orderAmt" class="{{vm.constant.inputClass}}" required>
            </td>
        </tr>
        <tr>
            <td class="text-right">
                交易类型
            </td>
            <td>
                <select ng-model="vm.item.transCode" class="{{vm.constant.inputClass}}" required>
                    <option value="0000001">普通订单</option>
                    <option value="0000002">普通退款</option>
                    <option value="0011000">代付</option>
                </select>
            </td>
        </tr>
        <tr>
            <td class="text-right">
                支付机构
            </td>
            <td>
                <input type="text" ng-model="vm.item.payOrgCode" class="{{vm.constant.inputClass}}"
                       placeholder="根据简称获取机构代码" required
                       typeahead-min-length="0"
                       uib-typeahead="item.key as item.value for item in vm.cached.COMANY_CODE | filter:$viewValue | limitTo:10">
            </td>
        </tr>
        <tr>
            <td class="text-right">
                银行类型
            </td>
            <td>
                <select ng-model="vm.item.bankType" class="{{vm.constant.inputClass}}"
                        ng-options="key as value for (key,value) in vm.cached.SUB_BANK_TYPE" required>
                </select>
            </td>
        </tr>
        <tr>
            <td class="text-right">
                银行请求流水号
            </td>
            <td>
                <input ng-model="vm.item.payRepNo" class="{{vm.constant.inputClass}}" required>
            </td>
        </tr>
        <tr>
            <td class="text-right">
                银行响应流水号
            </td>
            <td>
                <input ng-model="vm.item.payRespNo" class="{{vm.constant.inputClass}}" required>
            </td>
        </tr>
        <tr>
            <td class="text-right">
                银行卡号
            </td>
            <td>
                <input ng-model="vm.item.bankAccId" class="{{vm.constant.inputClass}}" required>
            </td>
        </tr>
        <tr>
            <td class="text-right">
                持卡人姓名
            </td>
            <td>
                <input ng-model="vm.item.bankAccName" class="{{vm.constant.inputClass}}" required>
            </td>
        </tr>
        <tr>
            <td class="text-right">
                银行清算日期
            </td>
            <td>
                <input ng-model="vm.item.paySettleDate" class="{{vm.constant.inputClass}}"
                       uib-datepicker-popup="yyyy-MM-dd" required>
            </td>
        </tr>
        <tr>
            <td class="text-right">
                退款原订单号
            </td>
            <td>
                <input ng-model="vm.item.oldOrderNo" class="{{vm.constant.inputClass}}">
            </td>
        </tr>
        <tr>
            <td class="text-right">
                产品ID
            </td>
            <td>
                <input ng-model="vm.item.productId" class="{{vm.constant.inputClass}}">
            </td>
        </tr>
    </table>
</div>
</body>
</html>
